/*
 * XML Type:  XButton
 * Namespace: http://www.seedwill.com/xul/widget/
 * Java type: com.seedwill.xul.widget.XButton
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.widget.impl;
/**
 * An XML XButton(@http://www.seedwill.com/xul/widget/).
 *
 * This is a complex type.
 */
public class XButtonImpl extends com.seedwill.xul.widget.impl.XControlImpl implements com.seedwill.xul.widget.XButton
{
    private static final long serialVersionUID = 1L;
    
    public XButtonImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName LABEL$0 = 
        new javax.xml.namespace.QName("", "label");
    private static final javax.xml.namespace.QName HIDDENLABEL$2 = 
        new javax.xml.namespace.QName("", "hiddenLabel");
    private static final javax.xml.namespace.QName TEXT$4 = 
        new javax.xml.namespace.QName("", "text");
    private static final javax.xml.namespace.QName TEXTALIGN$6 = 
        new javax.xml.namespace.QName("", "textAlign");
    
    
    /**
     * Gets the "label" element
     */
    public java.lang.String getLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABEL$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "label" element
     */
    public org.apache.xmlbeans.XmlString xgetLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABEL$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "label" element
     */
    public boolean isSetLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(LABEL$0) != 0;
        }
    }
    
    /**
     * Sets the "label" element
     */
    public void setLabel(java.lang.String label)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LABEL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(LABEL$0);
            }
            target.setStringValue(label);
        }
    }
    
    /**
     * Sets (as xml) the "label" element
     */
    public void xsetLabel(org.apache.xmlbeans.XmlString label)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(LABEL$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(LABEL$0);
            }
            target.set(label);
        }
    }
    
    /**
     * Unsets the "label" element
     */
    public void unsetLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(LABEL$0, 0);
        }
    }
    
    /**
     * Gets the "hiddenLabel" element
     */
    public boolean getHiddenLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HIDDENLABEL$2, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "hiddenLabel" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetHiddenLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(HIDDENLABEL$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "hiddenLabel" element
     */
    public boolean isSetHiddenLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(HIDDENLABEL$2) != 0;
        }
    }
    
    /**
     * Sets the "hiddenLabel" element
     */
    public void setHiddenLabel(boolean hiddenLabel)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HIDDENLABEL$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HIDDENLABEL$2);
            }
            target.setBooleanValue(hiddenLabel);
        }
    }
    
    /**
     * Sets (as xml) the "hiddenLabel" element
     */
    public void xsetHiddenLabel(org.apache.xmlbeans.XmlBoolean hiddenLabel)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(HIDDENLABEL$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(HIDDENLABEL$2);
            }
            target.set(hiddenLabel);
        }
    }
    
    /**
     * Unsets the "hiddenLabel" element
     */
    public void unsetHiddenLabel()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(HIDDENLABEL$2, 0);
        }
    }
    
    /**
     * Gets the "text" element
     */
    public java.lang.String getText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXT$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "text" element
     */
    public org.apache.xmlbeans.XmlString xgetText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TEXT$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "text" element
     */
    public boolean isSetText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEXT$4) != 0;
        }
    }
    
    /**
     * Sets the "text" element
     */
    public void setText(java.lang.String text)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$4);
            }
            target.setStringValue(text);
        }
    }
    
    /**
     * Sets (as xml) the "text" element
     */
    public void xsetText(org.apache.xmlbeans.XmlString text)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TEXT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TEXT$4);
            }
            target.set(text);
        }
    }
    
    /**
     * Unsets the "text" element
     */
    public void unsetText()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEXT$4, 0);
        }
    }
    
    /**
     * Gets the "textAlign" element
     */
    public com.seedwill.xul.core.XCellAlign.Enum getTextAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXTALIGN$6, 0);
            if (target == null)
            {
                return null;
            }
            return (com.seedwill.xul.core.XCellAlign.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "textAlign" element
     */
    public com.seedwill.xul.core.XCellAlign xgetTextAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XCellAlign target = null;
            target = (com.seedwill.xul.core.XCellAlign)get_store().find_element_user(TEXTALIGN$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "textAlign" element
     */
    public boolean isSetTextAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEXTALIGN$6) != 0;
        }
    }
    
    /**
     * Sets the "textAlign" element
     */
    public void setTextAlign(com.seedwill.xul.core.XCellAlign.Enum textAlign)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEXTALIGN$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXTALIGN$6);
            }
            target.setEnumValue(textAlign);
        }
    }
    
    /**
     * Sets (as xml) the "textAlign" element
     */
    public void xsetTextAlign(com.seedwill.xul.core.XCellAlign textAlign)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.core.XCellAlign target = null;
            target = (com.seedwill.xul.core.XCellAlign)get_store().find_element_user(TEXTALIGN$6, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.core.XCellAlign)get_store().add_element_user(TEXTALIGN$6);
            }
            target.set(textAlign);
        }
    }
    
    /**
     * Unsets the "textAlign" element
     */
    public void unsetTextAlign()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEXTALIGN$6, 0);
        }
    }
}
